package minesweeper;

import javax.swing.JLabel;

public class FlagCounter extends JLabel{
	public FlagCounter(int flagsLeft){
	     this.flagsLeft = flagsLeft;
	     setText(String.valueOf(flagsLeft));
	}
	
	public void setFlagsLeft(int flagsLeft){
		this.flagsLeft = flagsLeft;
		setText(String.valueOf(flagsLeft));
	}
	
	private int flagsLeft;
}
